package org.grow.present.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.grow.present.entity.ExpensesAnalysis;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.time.LocalDate;
import java.util.List;

/**
* @author xieweig
* @description 针对表【ExpensesAnalysis】的数据库操作Mapper
* @createDate 2024-10-03 15:13:19
* @Entity org.grow.present.entity.ExpensesAnalysis
*/
@Mapper
public interface ExpensesAnalysisMapper extends BaseMapper<ExpensesAnalysis> {

    ExpensesAnalysis findByDepartmentAndNaturalMonth(@Param("did") String departmentId, @Param("nm") LocalDate naturalMonth);

    List<ExpensesAnalysis> findByStartEnd(@Param("min") LocalDate min,@Param("max") LocalDate max);
}




